<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<% 
 /**
  功能名称:用户批量导出
  
  创建人:
**/
%>
<%
String path = request.getContextPath();

%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    
    
    <title>用户批量导出</title>
	<link href="<%=path %>/css/index_css.css" rel="stylesheet" type="text/css" />
	<script type="text/javascript">
      
      function doExport(){
      	var exportArr = document.getElementsByName("chkExport");
      	var exportField="";
      	if(exportArr!=null && exportArr.length>0){
      		for(var i=0;i<exportArr.length;i++){
      			if(exportArr[i].checked){
      				exportField+=exportArr[i].value+",";
      			}
      		}
      		var userType = '<%=request.getParameter("userType")%>';
      		window.location.href="<%=path %>/doTeacherExportUserAction.action?exportField="+exportField+"&user.userType="+userType;
      	}else{
      		alert('网络繁忙，请稍后再试');
      	}
      }
      
      function selectAll(){
      	var chkArr = document.getElementsByName("chkExport");
      	if(chkArr!=null && chkArr.length>0){
      		for(var i=0;i<chkArr.length;i++){
      			if(chkArr[i].value=='account' || chkArr[i].value=='name' || chkArr[i].value=='UserId'){
      			
      			}else{
      				chkArr[i].checked = document.getElementById('allchk').checked;	
      			}
      			
      		}
      		
      	}
      }
	</script>
	<style type="text/css">
		.columns {text-align:left;padding:3px 0 3px 8px;}
		.columns span{margin:2px 0;width:86px;}
		.columns span input{margin-right:2px;}
	</style>
  </head>
  
  <body bgcolor="#ECE9D8">
<table width="650" border="0" align="center" cellpadding="0" cellspacing="0">
  
  <tr>
    <td height="25" align="center" valign="bottom" bgcolor="#ECE9D8" class="f_4" nowrap="nowrap"><table width="95%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td align="left" valign="bottom" bgcolor="#ECE9D8" class="f_4" nowrap="nowrap">请选择以下导出列：</td>
        <td align="right" valign="bottom" bgcolor="#ECE9D8" class="f_4" nowrap="nowrap">全选<input type="checkbox" id="allchk" onclick="selectAll();" /></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td align="center" valign="top" bgcolor="#ECE9D8"><table width="95%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="1" bgcolor="#ABA899"></td>
      </tr>
      <tr>
        <td height="1" bgcolor="#FFFFFF"></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td height="25" align="center" valign="middle" bgcolor="#ECE9D8" class="columns">
    <span><input type="checkbox" name="chkExport" value="UserId" checked="checked" disabled />${param.userType eq 1?"学籍号":"人事编号"}</span>
    <span><input type="checkbox" name="chkExport" value="account" checked="checked" disabled />帐号</span>
    <span><input type="checkbox" name="chkExport" value="name" checked="checked" disabled />姓名</span>
    <span><input type="checkbox" name="chkExport" value="sex" />性别</span>
    
    <%-- <span><input type="checkbox" name="chkExport" value="password" />密码</span> --%>
    <span><input type="checkbox" name="chkExport" value="oldName" />曾用名</span>
    <span><input type="checkbox" name="chkExport" value="idNumber" />身份证号</span>
    <span><input type="checkbox" name="chkExport" value="birthday" />出生年月</span>
    <span><input type="checkbox" name="chkExport" value="mobileNumber1" />手机号码</span>
    <span><input type="checkbox" name="chkExport" value="politicalLandscape" />政治面貌</span>
    <span><input type="checkbox" name="chkExport" value="nation" />民族</span>
    <span><input type="checkbox" name="chkExport" value="national" />国籍</span>
    <span><input type="checkbox" name="chkExport" value="birthplace" />籍贯</span>
    <span><input type="checkbox" name="chkExport" value="accountType" />户口类型</span>
    <span><input type="checkbox" name="chkExport" value="accountAddress" />户口所在地</span>
    <span><input type="checkbox" name="chkExport" value="address" />家庭地址</span>
    <span><input type="checkbox" name="chkExport" value="email" />电子邮件</span>
    
    <%--<table width="95%" border="0" cellspacing="0" cellpadding="0">
      
      <tr height="30">
        <td align="left"><input type="checkbox" name="chkExport" value="account" checked="checked" disabled />
          帐号</td>
          
        <td align="left"><input type="checkbox" name="chkExport" value="name" checked="checked" disabled />
          姓名</td>
          
        <td align="left"><input type="checkbox" name="chkExport" value="sex" checked="checked" disabled />
          性别</td>
         
        <td align="left"><input type="checkbox" name="chkExport" value="UserId" />
        	${param.userType eq 1?"学籍号":"人事编号"}
        </td>
          
        <td align="left"><input type="checkbox" name="chkExport" value="password" />
          密码</td>
          
        <td align="left"><input type="checkbox" name="chkExport" value="oldName" />
          曾用名</td>
          
        <td align="left"><input type="checkbox" name="chkExport" value="idNumber" />
          身份证号</td>
          
        <td align="left"><input type="checkbox" name="chkExport" value="birthday" />
          出生年月</td>
          
      </tr>
      <tr>
        <td height="30" align="left"><input type="checkbox" name="chkExport" value="mobileNumber1" />
          手机号码</td>
          
        <td align="left"><input type="checkbox" name="chkExport" value="politicalLandscape" />
          政治面貌</td>
          
        <td align="left"><input type="checkbox" name="chkExport" value="nation" />
          民族</td>
          
        <td align="left"><input type="checkbox" name="chkExport" value="national" />
          国籍</td>
          
        <td align="left"><input type="checkbox" name="chkExport" value="birthplace" />
          籍贯</td>
          
        <td align="left"><input type="checkbox" name="chkExport" value="accountType" />
          户口类型</td>
          
        <td align="left"><input type="checkbox" name="chkExport" value="accountAddress" />
          户口所在地</td>
      </tr>
      <tr>
        <td height="30" align="left"><input type="checkbox" name="chkExport" value="address" />
          家庭地址</td>
          
        <td align="left"><input type="checkbox" name="chkExport" value="email" />
          电子邮件</td>
          
        <td align="left">&nbsp;</td>
        <td align="left">&nbsp;</td>
        <td align="left">&nbsp;</td>
        <td align="left">&nbsp;</td>
      </tr>
    </table> --%>
    </td>
  </tr>
  <tr>
    <td height="25" align="center" valign="middle" bgcolor="#ECE9D8"><table width="95%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="1" bgcolor="#ABA899"></td>
      </tr>
      <tr>
        <td height="1" bgcolor="#FFFFFF"></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td height="25" align="center" valign="middle" bgcolor="#ECE9D8"><input type="button" onclick="doExport();" name="Submit2" value="导 出" /></td>
  </tr>
</table>
<br>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td align="left" valign="top" class="tb_9 border_3">
              <table width="100%" border="0" cellspacing="0" cellpadding="0">
        
                <tr>
                	<td><font color='red'>导出说明：密码经过MD5加密，无法解密复原，因此不能导出，特此说明！</font> </td>
                </tr>
              </table>
              </td>
            </tr>
          </table>
</body>
</html>
